x11: Avoid a critical in clipboard data transfer
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 May 2020 01:29:15 +0000 (21:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 May 2020 01:31:19 +0000 (21:31 -0400)
The handler we are calling here asserts that it gets
an interned string as mime_type. So give it one.

Fixes: #2736
gdk/x11/gdkselectionoutputstream-x11.c

index cfacb13ac52540beb061107fead6159de1357150..bdd4c57d087f50819272ac17641edcfccbf72938 100644 (file)
@@ -892,7 +892,7 @@ gdk_x11_selection_output_streams_request (GdkDisplay                   *display,
                                                         target,
                                                         8,
                                                         timestamp);
-          handler (stream, target, user_data);
+          handler (stream, mime_type, user_data);
           return TRUE;
         }
     }